# Maintainer: Andrea Dalle Vacche adallevacche@bloomberg.net

_realname=Exporter-Tiny
pkgname=perl-${_realname}
pkgver=1.002001
pkgrel=1
pkgdesc="List::MoreUtils provides some trivial but commonly needed functionality on lists which is not going to go into List::Util"
arch=('any')
license=('GPL' 'PerlArtistic')
url="https://metacpan.org/release/Exporter-Tiny"
depends=('perl')
groups=('perl-modules')
options=('!emptydirs')
source=(https://www.cpan.org/authors/id/T/TO/TOBYINK/${_realname}-${pkgver}.tar.gz)
sha256sums=('a82c334c02ce4b0f9ea77c67bf77738f76a9b8aa4bae5c7209d1c76453d3c48d')

build() {
  cd ${_realname}-${pkgver}
  perl Makefile.PL INSTALLDIRS=vendor
  make
}

check() {
  cd ${_realname}-${pkgver}
  make test
}

package() {
  cd ${_realname}-${pkgver}
  make DESTDIR="${pkgdir}" install
}
